package com.bili.bili_data_api.controller;

import com.bili.bili_data_api.service.CompareService;
import com.bili.bili_data_api.vo.CpFavourVo;
import com.bili.bili_data_api.vo.CpTongVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("compare")
public class CompareController {

    @Autowired
    private CompareService compareService;

    @GetMapping("favour")
    public CpFavourVo getFavour(){
        return compareService.getFavour();
    }
    @GetMapping("view")
    public CpFavourVo getView(){
        return compareService.getView();
    }
    @GetMapping("tongji")
    public CpTongVo getTong(){
        return compareService.getTong();
    }
}
